﻿using Authentication.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Authentication.Model.Interface
{
    public interface IObjectProvider
    {
        IEnumerable<ApplicationObject> SearchObjects(out int totalRecord, Guid applicationKey, string name = null, string parentIdentifier = null, int pagesize = 0, int pageindex = 0);

        bool Update(ApplicationObject obj);

        bool Update(ObjectSubstitution obj);

        bool Delete(Guid applicationKey, string objectId);

        bool Add(ApplicationObject obj);

        bool Add(ObjectSubstitution obj);
    }
}
